// Loesung_von_Aufgabe_9.8_1_Nebelkammer

float x = 50;
float y = 50;
float e = 0;

void setup()
{
  size(400, 400);
  background(0);
  noStroke();
}

void draw()
{
  fill(0, 11); // Farbe und Deckkraft
  rect(0, 0, width, height);
  fill(255);
  ellipse(x, y, 20, 20);
  x += 2.0;
  y += pow(3.0, e);
  e += 0.02;
  if (y > height || x > width)
  {
    x = random(300);
    y = random(300);
    e = 0;
  }
}